package com.wywah.core.filter;

import org.springframework.cloud.gateway.filter.GatewayFilter;
import org.springframework.cloud.gateway.filter.factory.AbstractGatewayFilterFactory;
import org.springframework.stereotype.Component;

import java.util.Map;
@Component
public class LogGatewayFilterFactory extends AbstractGatewayFilterFactory<Object> {
    @Override
    public GatewayFilter apply(Object config) {
        return (exchange, chain) ->{
            Map<String, Object> attributes = exchange.getAttributes();

            return chain.filter(exchange);
        };
    }
}
